import request from '@/utils/request.js';

export function getList(data) {
  return request.post(`/erp/hrm/department/getlist`, data);
}

export function getlistbyvdepart(data) {
  return request.post(`/erp/hrm/user/getlistbyvdepart`, data);
}

//虚拟部门id
export function getItem(id) {
  return request.get(`/erp/hrm/department/getbyid`,{
   params:{id}
  });
}

export function getlistbydepartId(data) {
  return request.get(`/account/user/getlistbydepartid`, {
    params: {
      ...data,
      departId: data.departId,
      departid: data.departId,
    },
  });
}
